package com.ruoyi.project.xcx.myhome.category.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.project.xcx.myhome.category.domain.XcxMyhomeCategory;
import com.ruoyi.project.xcx.user.domain.XcxUser;

/**
 * myhome分类Service接口
 * 
 * @author ruoyi
 * @date 2020-03-10
 */
public interface IXcxMyhomeCategoryService {
    /**
     * 删除分类
     * @param categoryId
     * @param user
     */
    void deleteCategory(Long categoryId, XcxUser user);
    /**
     * 查询用户所有的类别
     * @param userId
     * @return
     */
    Map<Long, String> queryAllCategoryName(Long userId);
    /**
     * 查询该用户的所有类型
     * @param user
     * @return
     */
    List<XcxMyhomeCategory> listCategory(XcxUser user);
    /**
     * 查询myhome分类
     * 
     * @param id myhome分类ID
     * @return myhome分类
     */
    public XcxMyhomeCategory selectXcxMyhomeCategoryById(Long id);

    /**
     * 查询myhome分类列表
     * 
     * @param xcxMyhomeCategory myhome分类
     * @return myhome分类集合
     */
    public List<XcxMyhomeCategory> selectXcxMyhomeCategoryList(XcxMyhomeCategory xcxMyhomeCategory);

    /**
     * 新增myhome分类
     * 
     * @param xcxMyhomeCategory myhome分类
     * @return 结果
     */
    public int insertXcxMyhomeCategory(XcxMyhomeCategory xcxMyhomeCategory);

    /**
     * 修改myhome分类
     * 
     * @param xcxMyhomeCategory myhome分类
     * @return 结果
     */
    public int updateXcxMyhomeCategory(XcxMyhomeCategory xcxMyhomeCategory);

    /**
     * 批量删除myhome分类
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteXcxMyhomeCategoryByIds(String ids);

    /**
     * 删除myhome分类信息
     * 
     * @param id myhome分类ID
     * @return 结果
     */
    public int deleteXcxMyhomeCategoryById(Long id);
}
